package com.smp.bitmapgridtest;

import java.lang.ref.WeakReference;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;

public class AsyncDrawable extends BitmapDrawable {
	
	private final WeakReference<BitmapWorkerTask> mBitmapWorkerTask;
	
	public AsyncDrawable(Resources aRes, Bitmap aPlaceHodlerBitmap, BitmapWorkerTask aBitmapWorkerTask) {
		super(aRes, aPlaceHodlerBitmap);
		mBitmapWorkerTask = new WeakReference<BitmapWorkerTask>(aBitmapWorkerTask);
	}
	
	public BitmapWorkerTask getBitmapWorkerTask() {
		return mBitmapWorkerTask.get();
	}
}
